package com.qys.livesMall.anchor.controller.sys;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qys.livesMall.anchor.model.dto.task.sys.SysSellTaskAnchorPageDTO;
import com.qys.livesMall.anchor.model.vo.task.sys.SysSellTaskAnchorPageVO;
import com.qys.livesMall.anchor.service.AnchorSellTaskService;
import com.qys.livesMall.common.result.R;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 主播接取带货任务表 前端控制器
 * </p>
 *
 * @author
 * @since 2023-06-16
 */
@RestController
@Tag(name = "后台管理-带货主播的任务")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
@RequestMapping("/sys/anchor/sell/task")
public class SysAnchorSellTaskController {

    private final AnchorSellTaskService anchorSellTaskService;

    @PostMapping("/anchorSellTaskList")
    @Operation(summary = "分页查询主播接单带货任务")
    public R<Page<SysSellTaskAnchorPageVO>> anchorSellTaskList(@RequestBody SysSellTaskAnchorPageDTO queryDTO) {
        return R.ok(anchorSellTaskService.anchorSysSellTaskList(queryDTO));
    }

}
